]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
popupMenu: Fix wrong call to clutter_actor_add_child()
authorMario Sanchez Prada <mario@endlessm.com>
Mon, 16 Apr 2018 10:47:57 +0000 (11:47 +0100)
committerFlorian Müllner <florian.muellner@gmail.com>
Mon, 16 Apr 2018 11:40:04 +0000 (11:40 +0000)
Specify the horizontal alignment via the x_align property when creating
the StIcon, since this function expects one argument, not two.

js/ui/popupMenu.js

index 67b928c69bd93840277e842779864e54be3aa95a..83194d72ba7b69cf28d5a6be6370d7a447d3e6ac 100644 (file)
@@ -394,8 +394,9 @@ var PopupImageMenuItem = new Lang.Class({
     _init(text, icon, params) {
         this.parent(params);
 
-        this._icon = new St.Icon({ style_class: 'popup-menu-icon' });
-        this.actor.add_child(this._icon, { align: St.Align.END });
+        this._icon = new St.Icon({ style_class: 'popup-menu-icon',
+                                   x_align: Clutter.ActorAlign.END });
+        this.actor.add_child(this._icon);
         this.label = new St.Label({ text: text });
         this.actor.add_child(this.label);
         this.actor.label_actor = this.label;